<template>
  <div class="container">
    <headers />
    <top />
    <div class="cont">
      <div class="list" v-for="(temp,index) in 3" :key="index">
        <div class="prise">一等奖</div>
        <input type="text" class="type name">
        <div class="num">
          (<span>5</span>)
          <span class="show">份/日</span>
        </div>
      </div>
      <div class="gz-wz">使用规则描述</div>
      <textarea class="list rule"></textarea>
      <div class="list convert">
        <div class="prise">兑奖开始日期</div>
        <div class="type">
          <img src="@/assets/select.png" alt class="select" @click="showTime = true" />
        </div>
        <!-- <div><van-datetime-picker v-model="currentTime" type="time" :min-hour="10" :max-hour="20" /></div> -->
      </div>
      <div class="list convert">
        <div class="prise">兑奖截止日期</div>
        <div class="type">
          <img src="@/assets/select.png" alt class="select" @click="showTime = true" />
        </div>
        <!-- <div><van-datetime-picker v-model="currentTime" type="time" :min-hour="10" :max-hour="20" /></div> -->
      </div>
       <div class="next-btn" @click="routerLink(`time`)">下一步,时段选择</div>
       <div class="back" @click="routerLink(`tenant`)">上一步</div>
    </div>

  </div>
</template>
<script>
import headers from "@/components/header";
import top from "@/components/top";
export default {
  components: {
    headers: headers,
    top: top
  },
  data() {
    return {
      currentTime: "12:00",

    };
  },
   methods:{
     routerLink(href){
         this.$router.push({
             name:href
         })
       } 
    }
};
</script>
<style lang="less" scoped>
.container {
  width: 95%;
  margin: 0 auto;
  border: 1px solid;
  .header {
    width: 95%;
    margin: 0 auto;
    height: 40px;
    line-height: 40px;
    span {
      padding-right: 10px;
    }
  }
  .top {
    display: flex;
    // justify-content: space-between;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    .icon {
      width: 50%;
      img {
        width: 100%;
      }
    }
    .wz {
      font-size: 23px;
      font-weight: bold;
    }
    .rule-btn {
      width: 5%;
      margin-top: -50px;
      img {
        width: 100%;
      }
    }
  }
  .cont {
    width: 100%;
    .list {
      border: 2px solid #487cfb;
      display: flex;
      justify-content: space-around;
      padding: 15px 0;
      margin: 15px 10px;
      border-radius: 6px;
    }
    .prise {
      font-size: 14px;
      color: #b6b6b6;
    }
    .type {
      font-size: 16px;
      font-weight: bold;
      color: #487cfb;
    }
    .name{
      border: none;
    }
    .num {
      font-size: 14px;
      color: #487cfb;
      .show {
        color: #b6b6b6;
        padding-left: 5px;
      }
    }
    .rule {
      width: 94%;
      height: 100px;
      padding: 5px;
      box-sizing: border-box;
    }
    .gz-wz {
      padding: 0px 10px;
      font-size: 14px;
      color: #b6b6b6;
    }
    .convert{
        justify-content: space-between;
        padding:15px;
        box-sizing: border-box;
    }
    .select{
        width: 17px;
    }
    .next-btn{
        width: 95%;
        margin: 0 auto;
        padding: 15px 0;
        background: #487cfb;
        color: #fff;
        text-align: center;
        margin-bottom:2%;
        font-size: 14px;
        border-radius: 6px;
    }
    .back{
        text-align: center;
        color: #487cfb;
        font-size: 14px;
    }
  }
}
</style>